<body class="page-{$__page} %%FILTER:LOLITA:BODY:CLASS%%">
  {widget name="notif"}
  <div class="wrap">
    <header class="header line top">
      <div class="mw960p w960p center">
        <div class="up">
          <div class="header-left left"><span>Ligue Ouvert et Libre d'Impovisation Théatrale Amateur</span></div>
          <div class="header-center center"><span>LOLITA</span></div>
          <div class="header-right right"><span>Match d'Impro</span></div>
        </div>
        <nav id="navigation" role="navigation">
          {php}
              // Définissez ici les items du menu à venir
              $menu   = null;
              if(route::getPage()=='test'){
              $menu[] = menuItem('accueil','debug','?page=test&bpc=' . microtime(true));
              }
              $menu[] = menuItem('accueil','Home','?page=accueil');
              $menu[] = menuItem('info','Infos','?page=news');
              //$menu[] = menuItem('calendrier','Calendrier','?page=champ&type=C&point=calendrier');
              $menu[] = menuItem('calendrier','Calendrier','?page=calendrier&type=C');
              //$menu[] = menuItem('photos','Photos','?page=champ&type=C&point=photo');
              $menu[] = menuItem('photos','Photos','?page=photos&type=C');
              $menu[] = menuItem('membres','Membres','?page=membres');
              $menu[] = menuItem('contact','Contact','?page=contact');
              $menu[] = menuItem('presse','Presse','#presse');
              
              if(commun::isLogged()){
                $menu[] = menuItem('login','Login','#login',array("class"=>"logged", "title"=>"Vous êtes connecté en tant que "));
              } else {
                $menu[] = menuItem('login','Login','#login',array("class"=>"not-logged", "title"=>"Se connecter"));
              }

              $template->assign('menu',$menu);

              if(!commun::isLocal()){
                //echo "<style>#navigation .item.menu-item-login{ display: none}</style>";
              }


          {/php}
          <label for="toggle-menu" data-icon="≡" title="menu" role="navigation" onclick=""></label><input type="checkbox" id="toggle-menu">
          <ul class="line menu-main">
            {foreach from=$menu item=item}
                <li class="item left menu-item-{$item.id} {$item.class}" {if !empty($item.title)}title="{$item.title}"{/if}>
                    <a href="{$item.href}" class="w100p">
                       <label>{$item.label}</label>
                       <span></span>
                    </a>
                    {if $item.id=='login'}
                      {widget name="form" type="login"}
                    {/if}
                </li>
            {/foreach}
            
          </ul>
        </nav>
      </div>
    </header>
    <div class="line main center mw960p">
      <aside class="mod left w10p">
        {$renderPage->render('left')}
      </aside>
      <div class="left mod item w600p content">
        {$renderPage->render('middle')}
       </div>
      <aside class="mod right w300p">
        {$renderPage->render('right')}
      </aside>

    </div>
